package cn.kgc.client;

import org.springframework.stereotype.Component;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/6/29
 * @Description:
 */
@Component
public class HystrixClientFallback implements HystrixClient {

    //  接口中getById方法的快速返回方法
    @Override
    public String getById(Integer id) {

        System.out.println("id = " + id);

        return "服务器繁忙,请刷新！！！";
    }
}
